﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:mssdk="winsdk" xmlns:script="urn:script" xmlns:build="urn:build" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Description" content="This section describes the USB 3.0 debugger extension commands."/>
<meta name="MSHAttr" content="PreferredSiteName:MSDN"/>
<meta name="MSHAttr" content="PreferredLib:/library/windows/hardware"/>
<title>USB 3.0 Extensions</title>



<link rel="STYLESHEET" type="text/css" HREF="../common/backsdk4.css"/>





<style>
html,div { margin: 0; padding: 0;}

body {
	padding: 0px;
	margin: 0px;
	overflow: auto;
	height: 100%;
}

#winchm_template_button{
	float: right;
	width: 93px;
	top: 7px;
	position: relative;
	text-align: right;
	right: 5px;
	height: auto;
}

#winchm_template_top{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #9B9B9B;
	background-color: #B1CEFE;
}

#winchm_template_navigation{
	margin: 0px;
	padding-top: 7px;
	padding-left: 7px;
	padding-bottom: 3px;
	padding-right: 0px;
	font-size: 8.5pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: #585858;
}

#winchm_template_title{
	margin: 0px;
	padding-top: 4px;
	padding-left: 7px;
	padding-bottom: 7px;
	padding-right: 0px;
	font-size: 18px; 
	font-family: Verdana, Geneva, sans-serif;
	color: #363636;
}

#winchm_template_content{
	margin-top: 20px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	width: auto  !important;
	width: 100%;
}

#winchm_template_footer{
	border-width: 1px;
	border-color: #B1CEFE;
	border-top-style: solid;
	margin-top: 15px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	padding-top: 7px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
	font-family: arial, helvetica, sans-serif;
	font-size: 8.5pt;
	color: #696969;
	width: auto;
	text-align: left;
}


#winchm_template_container{
	margin: 0px;
	padding: 0px;
	position: static;
	padding-bottom: 3px;
	overflow: auto;
	background-color: #FFFFFF;
}


@media print
{
#winchm_template_container{
	position: static;	
	margin: 0px;
	padding: 5px;
	
	width: auto;
	height: auto;
	overflow: auto;
}
#winchm_template_button{
visibility:hidden;
}
}

#winchm_template_navigation A:link	{text-decoration: none; color:#004080}
#winchm_template_navigation A:visited  {text-decoration: none; color: #004080}
#winchm_template_navigation A:active {text-decoration: none; color: #004080 }
#winchm_template_navigation A:hover {text-decoration: none;color: #0080FF}

A:link	{text-decoration: underline; color:#0033CC}
A:visited  {text-decoration: underline; color: #0033CC}
A:active {text-decoration: underline; color: #0033CC }
A:hover {text-decoration: underline;color: #FF0000;}
</style>
<script type="text/javascript">
function isMobile(){
Agent = window.navigator.userAgent;
if (Agent.indexOf("iPhone")>=1 || Agent.indexOf("iPad")>=1 || Agent.indexOf("iPod")>=1 || Agent.indexOf("Android")>=1){
return true;
}else{
return false;	
}

}
function d_onresize(){
if (window.navigator.userAgent.indexOf("MSIE")>=1){
document.getElementById('winchm_template_container').style.pixelWidth = document.body.offsetWidth - 3;
document.getElementById('winchm_template_container').style.pixelHeight = document.body.offsetHeight - document.getElementById('winchm_template_top').offsetHeight - 4;
}
document.getElementById('winchm_template_container').style.top = document.getElementById('winchm_template_top').offsetHeight + 'px';
}

function d_onbeforeprint(){
document.getElementById('winchm_template_container').style.width = 'auto';
document.getElementById('winchm_template_container').style.height = 'auto';
}

function d_onafterprint(){
d_onresize();
}

if(!isMobile()){

window.onload = d_onresize;
window.onresize = d_onresize;
window.onbeforeprint = d_onbeforeprint;
window.onafterprint = d_onafterprint;

document.write("<style>\n");
document.write("body {overflow: hidden;}\n");
document.write("#winchm_template_container {position: absolute;overflow: auto;top : 0px;right: 0px;bottom: 0px;left: 0px;}\n");
document.write("</style>\n");
}

</script>
</head>
<body><script language="JavaScript" type="text/JavaScript">
function syn(){
if(parent.nav.tree){
 if(parent.nav.tree.loaded){
  parent.nav.tree.selectNode(2525);
 }else{
  setTimeout("syn()",500);
}
  }else{
  setTimeout("syn()",500);
  }}
if(parent!=self){
  setTimeout("syn()",100);
}else{
  parent.location.href = "../../index.htm?page=debugger/usb_3_extensions.htm";
}
originalOnload = window.onload;
if(originalOnload==null){
window.onload = function(){parent.contentLoaded = true;};
}else{
window.onload = function(){originalOnload();parent.contentLoaded = true;};
}
</script> 


<div id="winchm_template_top">
	<div id="winchm_template_button"><A href="_gpiokd_pintable.htm" title="Previous topic"><img id="winchm_template_prev" alt="Previous topic" src="../template2/btn_prev_n.gif" border="0"></a><A href="usb_3_0_data_structures.htm" title="Next topic"><img id="winchm_template_next" alt="Next topic" src="../template2/btn_next_n.gif" border="0"></a></div>
	<div id="winchm_template_navigation">Help &gt; 
<A href="introduction6.htm">Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)</A> &gt; <A href="debugger_reference.htm">Debugger Reference</A> &gt; <A href="debugger_commands.htm">Debugger Commands</A> &gt; <A href="specialized_extensions.htm">Specialized Extension Commands</A> &gt; </div>
	<div id="winchm_template_title">USB 3.0 Extensions</div>
</div>
<div id="winchm_template_container">
	<div id="winchm_template_content"><div id="mainSection"><p>This section describes the USB 3.0 debugger extension commands. These commands display information from data structures maintained by three drivers in the USB 3.0 stack: the USB 3.0 hub driver, the USB host controller extension driver, and the USB 3.0 host controller driver. For more information about these three drivers, see <a href="http://go.microsoft.com/fwlink/p?LinkId=251983">USB Driver Stack Architecture</a>. For an explanation of the data structures used by the drivers in the USB 3.0 stack, see <a href="#Bookmark2526">USB 3.0 Data Structures</a> and Part 2 of the <a href="http://go.microsoft.com/fwlink/p/?LinkID=249153">USB Debugging Innovations in Windows 8</a> video.</p>
<p>The USB 3.0 debugger extension commands are implemented in Usb3kd.dll. To load the Usb3kd commands, enter <b>.load usb3kd.dll</b> in the debugger.</p>
<h2><a id="usb_3_tree"></a><a id="USB_3_TREE"></a>USB 3.0 Tree</h2>
<p>The USB 3.0 tree contains all USB 3.0 host controllers and all hubs and devices that are connected to USB 3.0 host controllers. The following diagram shows an example of a USB 3.0 tree.</p><img src="images/usb3tree01.png" alt="USB 3.0 tree showing a mix of USB 3.0 and USB 2.0 devices roots and controllers"/><p>The tree shown in the diagram has two USB 3.0 host controllers. Notice that not every device shown in the diagram is a USB 3.0 device. But all of the devices shown (including the hubs) are part of the USB 3.0 tree, because each device is on a branch that originates at a USB 3.0 host controller.</p>
<p>You can think of the diagram as two trees, one for each host controller. However, when we use the term <i>USB 3.0 tree</i>, we are referring to the set of all USB 3.0 host controllers along with their connected hubs and devices.</p>
<h2><a id="Getting_started_with_USB_3.0_debugging"></a><a id="getting_started_with_usb_3.0_debugging"></a><a id="GETTING_STARTED_WITH_USB_3.0_DEBUGGING"></a>Getting started with USB 3.0 debugging</h2>
<p>To start debugging a  USB 3.0 issue, enter the <a href="#Bookmark2540"><b>!usb_tree</b></a> command. The <b>!usb_tree</b> command displays a list of commands and addresses that you can use to investigate host controllers, hubs, ports, devices, endpoints, and other elements of the USB 3.0 tree.</p>
<h2><a id="Hub_commands"></a><a id="hub_commands"></a><a id="HUB_COMMANDS"></a>Hub commands</h2>
<p>The following extension commands display information about USB 3.0 hubs, devices, and ports. The displayed information is based on data structures maintained by the USB 3.0 hub driver.</p>
<ul>
<li><a href="#Bookmark2540"><b>!usb3kd.usb_tree</b></a></li>
<li><a href="#Bookmark2531"><b>!usb3kd.hub_info</b></a></li>
<li><a href="#Bookmark2532"><b>!usb3kd.hub_info_from_fdo</b></a></li>
<li><a href="#Bookmark2528"><b>!usb3kd.device_info</b></a></li>
<li><a href="#Bookmark2529"><b>!usb3kd.device_info_from_pdo</b></a></li>
<li><a href="#Bookmark2533"><b>!usb3kd.port_info</b></a></li>
</ul>
<h2><a id="UCX_commands"></a><a id="ucx_commands"></a><a id="UCX_COMMANDS"></a>UCX commands</h2>
<p>The following extension commands display information about USB 3.0 host controllers, devices, and ports. The displayed information is based on data structures maintained by the USB  host controller extension driver.</p>
<ul>
<li><a href="#Bookmark2537"><b>!usb3kd.ucx_controller_list</b></a></li>
<li><a href="#Bookmark2536"><b>!usb3kd.ucx_controller</b></a></li>
<li><a href="#Bookmark2534"><b>!usb3kd.ucx_device</b></a></li>
<li><a href="#Bookmark2535"><b>!usb3kd.ucx_endpoint</b></a></li>
</ul>
<h2><a id="Host_controller_commands"></a><a id="host_controller_commands"></a><a id="HOST_CONTROLLER_COMMANDS"></a>Host controller commands</h2>
<p>The following extension commands display information from data structures maintained by the USB 3.0 host controller driver.</p>
<ul>
<li><a href="#Bookmark2545"><b>!usb3kd.xhci_dumpall</b></a></li>
<li><a href="#Bookmark2542"><b>!usb3kd.xhci_capability</b></a></li>
<li><a href="#Bookmark2543"><b>!usb3kd.xhci_commandring</b></a></li>
<li><a href="#Bookmark2544"><b>!usb3kd.xhci_deviceslots</b></a></li>
<li><a href="#Bookmark2546"><b>!usb3kd.xhci_eventring</b></a></li>
<li><a href="#Bookmark2549"><b>!usb3kd.xhci_registers</b></a></li>
<li><a href="#Bookmark2550"><b>!usb3kd.xhci_resourceusage</b></a></li>
<li><a href="#Bookmark2551"><b>!usb3kd.xhci_trb</b></a></li>
<li><a href="#Bookmark2552"><b>!usb3kd.xhci_transferring</b></a></li>
<li><a href="#Bookmark2547"><b>!usb3kd.xhci_findowner</b></a></li>
</ul>
<h2><a id="Miscellaneous_commands"></a><a id="miscellaneous_commands"></a><a id="MISCELLANEOUS_COMMANDS"></a>Miscellaneous commands</h2>
<ul>
<li><a href="#Bookmark2539"><b>!usb3kd.usbdstatus</b></a></li>
<li><a href="#Bookmark2541"><b>!usb3kd.urb</b></a></li>
</ul>
<h2><a id="related_topics"></a>Related topics</h2>
<dl>
<dt><a href="#Bookmark2610">RCDRKD Extensions</a></dt></dl></div></div>	
	<div id="winchm_template_footer">Copyright &copy; 2019. All rights 
reserved. (To change the copyright info, just edit it in template.)</div>
</div>

</body>
</html>
